package data.preprocessing;

/*
 * remove the short word or phrase  
 * 
 * author LIU Xiao
 */
public class RemoveShortPhrase implements StringProcessor {

	private int size;

	public RemoveShortPhrase(int size) {
		this.size = size;
	}

	public String map(String from) {
		if (from.length()>=size)
			return from;
		else
			return "";
	}

}

